﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Hk.Core.Extensions;

namespace Hk.Core
{
    public class Terms : BaseDbContext
    {
        public tbl_Blog_Terms GetByAlias(string alias)
        {
            return _db.tbl_Blog_Terms.FirstOrDefault(a => a.slug.Equals(alias) && a.portal_id == CurrentPortal.PortalId);
        }
    }
}
